<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ES9- 对象方法扩展</title>
</head>

<body>
  <script>
    // 二维数组
    /* const result = Object.fromEntries([
      ['name', '尚硅谷'],
      ['xueke', 'Java,大数据,前端,云计算']
    ]); */

    // Map
    /* const m = new Map();
    m.set('name', 'ATGUIGU');
    const result = Object.fromEntries(m);

    console.log(result); */

    // Object.entries ES8  二维数组
    const arr = Object.entries({
      name: "尚硅谷"
    })

    console.log(arr);


    
  </script>
</body>

</html>